// 暗黑模式全局样式
html.dark {
  position: relative;
  min-height: 100vh;
  
  &::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('/bg.jpg');  // 直接从根目录访问
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
  }

  // 给内容添加一个半透明的暗色遮罩，增加对比度
  &::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1;
    pointer-events: none;
  }

  // 确保内容在遮罩层上方
  #app {
    position: relative;
    z-index: 2;
  }

  // 内容区域背景
  .app-main {
    background: rgba(18, 18, 18, 0.6);
  }
}
